package customer.zspt.cn.customer.components.chat.ChatOtherThingContent;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.lidroid.xutils.BitmapUtils;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;

import customer.zspt.cn.customer.R;
import customer.zspt.cn.customer.Widget.photoView.PhotoView;
public class ChatImageContent extends Activity{
    @ViewInject(R.id.ph_view)
    PhotoView photoView;
    @ViewInject(R.id.out_ll)
    LinearLayout out_ll;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.chatimagelook);
        ViewUtils.inject(this);
        String imgUrl = getIntent().getStringExtra("imgUrl");
        initAttar();
        BitmapUtils utils = new BitmapUtils(this);
        utils.display(photoView,imgUrl);
        photoView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
    /* 设置属性*/
    private void initAttar() {
        photoView.setScaleType(ImageView.ScaleType.CENTER);
        photoView.setZoomable(true);
        photoView.setMinimumScale(1f);
    }


}
